package rocky.freemanagementsystemserver.Entity

import javax.persistence.*

@Table(name = "role", uniqueConstraints = [UniqueConstraint(columnNames = arrayOf("name"))])
@Entity
class Role : BaseEntity(){
    @Column(nullable = false)
    var name: String? = null

    @OneToMany
    var permissions: List<Permission>? = null;
}